/*-
 * UserTester.java
 *
 * Date: 2016年6月28日
 * Time: 下午9:27:53
 *
 * 版权所有©2012-2013 rengh
 */

package com.lmx.client.jsonapiRep;

import com.lmx.client.BaseTester;

/**
 * #{description}
 * 
 * @author Administrator
 * @version 1.00
 */
public class UserTester extends BaseTester {
    protected String method = "PATCH";
    protected String model = "user";
    
    public void testUpdateUser(){
        String reqString = "{\"data\":{\"id\":\"2\",\"type\":\"user\",\"attributes\":{\"code\": \"show_cs_81\"}}}";
       // String reqString = "{\"data\":{\"id\":\"2\",\"attributes\":{\"code\":\"show_cs_8\",\"loginType\":null,\"loginName\":\"wangcheng\",\"name\":\"......\",\"entName\":null,\"password\":\"wangcheng\",\"avatar\":\"wangcheng.png\",\"desc\":null,\"introduce\":null,\"sex\":1,\"age\":null,\"phone\":82548974,\"email\":null,\"weixin\":null,\"address\":\"11\",\"invite\":null,\"alipay\":null},\"relationships\":{\"role\":{\"data\":{\"type\":\"role\",\"id\":\"1\"}},\"cstag\":null,\"extendInfo\":{\"data\":{\"type\":\"userextend\",\"id\":\"1\"}}},\"type\":\"user\"}}";

        this.setModel("userSession?filter%5BloginName%5D=13310255555&filter%5Bpassword%5D=e10adc3949ba59abbe56e057f20f883e");
        this.setMethod("GET");
        this.setReqString("");
        this.baseTest();
    }   
    
    public static void main(String[] args) {
        UserTester tester = new UserTester();
       // tester.testIncreaseExp();
        tester.testUpdateUser();
        // tester.testActiveRoles();
        // tester.testGenerals();
        // tester.testEmploy();
    }
}
